package iceberg.constraints;

public class ConstraintExceptionImpl implements ConstraintException {
	private final String name;
	private final String argument;
	private final String rule;
	private String className;

	public ConstraintExceptionImpl(String name, String argument, String rule) {
		this.name = name;
		this.argument = argument;
		this.rule = rule;
	}

	public String getName() {
		return name;
	}

	@Override
	public String getArgument() {
		return argument;
	}

	@Override
	public String getRule() {
		return rule;
	}

	@Override
	public String getClassName() {
		return className;
	}

	@Override
	public void setClassName(String className) {
		this.className = className;
	}

	@Override
	public String toString() {
		return "[ConstraintException] name '" + name + "' argument '" + argument + "' rule '" + rule + "'" ;
	}
}
